package com.szl.sbssh.service;

import com.szl.sbssh.pageModel.base.PageFilter;
import com.szl.sbssh.pageModel.base.SessionInfo;
import com.szl.sbssh.pageModel.base.Tree;
import com.szl.sbssh.pageModel.sys.SysDictionaryDetail;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Author: songzhonglin
 * Date: 2018/4/25
 * Time: 15:46
 * Description:
 **/
public interface SysDictionaryDetailService {
    public List<SysDictionaryDetail> dataGrid(SysDictionaryDetail sysDictionaryDetail, PageFilter ph, SessionInfo sessionInfo);

    public Long count(SysDictionaryDetail sysDictionaryDetail, PageFilter ph, SessionInfo sessionInfo);

    public void add(SessionInfo sessionInfo, SysDictionaryDetail sysDictionaryDetail);

    public void delete(Long id, HttpServletRequest request);

    public void edit(SessionInfo sessionInfo,SysDictionaryDetail sysDictionaryDetail);

    public SysDictionaryDetail get(Long id);

    public boolean dictionaryExists(String code);

    public List<Tree> getDictionaryByParentCode(String parentCode);
}
